const mongoose = require('mongoose')
let Schema = mongoose.Schema
let ProjectSchema = new Schema({
  _id: {type: String,required: true},
  name: String,
  img_url:{ type: String, default: '' },
  start_time:Date,
  end_time:Date,
  create_time:{type:Date,default: Date.now()},
  update_time:{type:Date,default: Date.now()},
  describe:String,
  href:String,
  category_id:{type: String,ref:'project_cate'}
})
//创建Model对象
let Project = mongoose.model('project', ProjectSchema)
module.exports = Project